package com.ruoyi.yzd.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yzd.mapper.YzdCorporationMapper;
import com.ruoyi.yzd.domain.YzdCorporation;
import com.ruoyi.yzd.service.IYzdCorporationService;

/**
 * 易制毒-法人Service业务层处理
 * 
 * @author zyb
 * @date 2023-07-04
 */
@Service
public class YzdCorporationServiceImpl implements IYzdCorporationService 
{
    @Autowired
    private YzdCorporationMapper yzdCorporationMapper;

    /**
     * 查询易制毒-法人
     * 
     * @param corporationId 易制毒-法人主键
     * @return 易制毒-法人
     */
    @Override
    public YzdCorporation selectYzdCorporationByCorporationId(String corporationId)
    {
        return yzdCorporationMapper.selectYzdCorporationByCorporationId(corporationId);
    }

    /**
     * 查询易制毒-法人列表
     * 
     * @param yzdCorporation 易制毒-法人
     * @return 易制毒-法人
     */
    @Override
    public List<YzdCorporation> selectYzdCorporationList(YzdCorporation yzdCorporation)
    {
        return yzdCorporationMapper.selectYzdCorporationList(yzdCorporation);
    }

    /**
     * 新增易制毒-法人
     * 
     * @param yzdCorporation 易制毒-法人
     * @return 结果
     */
    @Override
    public int insertYzdCorporation(YzdCorporation yzdCorporation)
    {
        return yzdCorporationMapper.insertYzdCorporation(yzdCorporation);
    }

    /**
     * 修改易制毒-法人
     * 
     * @param yzdCorporation 易制毒-法人
     * @return 结果
     */
    @Override
    public int updateYzdCorporation(YzdCorporation yzdCorporation)
    {
        return yzdCorporationMapper.updateYzdCorporation(yzdCorporation);
    }

    /**
     * 批量删除易制毒-法人
     * 
     * @param corporationIds 需要删除的易制毒-法人主键
     * @return 结果
     */
    @Override
    public int deleteYzdCorporationByCorporationIds(String[] corporationIds)
    {
        return yzdCorporationMapper.deleteYzdCorporationByCorporationIds(corporationIds);
    }

    /**
     * 删除易制毒-法人信息
     * 
     * @param corporationId 易制毒-法人主键
     * @return 结果
     */
    @Override
    public int deleteYzdCorporationByCorporationId(String corporationId)
    {
        return yzdCorporationMapper.deleteYzdCorporationByCorporationId(corporationId);
    }
}
